
package myExceptions;

public class myExeptionsbyDiferentZero extends RuntimeException{

    public myExeptionsbyDiferentZero(Throwable cause) {
        super(cause);
    }

    public myExeptionsbyDiferentZero(String message, Throwable cause) {
        super(message, cause);
    }

    public myExeptionsbyDiferentZero(String message) {
        super(message);
    }

    public myExeptionsbyDiferentZero() {
    }

    @Override
    public String getMessage() {
        return "Los numeros deben ser distintos de cero";
    }    
}
